import request from '@/utils/request'

// 查询出租车列表
export function listChuzhuche(query) {
  return request({
    url: '/doc/chuzhuche/list',
    method: 'get',
    params: query
  })
}

// 查询出租车详细
export function getChuzhuche(id) {
  return request({
    url: '/doc/chuzhuche/' + id,
    method: 'get'
  })
}

// 新增出租车
export function addChuzhuche(data) {
  return request({
    url: '/doc/chuzhuche',
    method: 'post',
    data: data
  })
}

// 修改出租车
export function updateChuzhuche(data) {
  return request({
    url: '/doc/chuzhuche',
    method: 'put',
    data: data
  })
}

// 删除出租车
export function delChuzhuche(id) {
  return request({
    url: '/doc/chuzhuche/' + id,
    method: 'delete'
  })
}
